package com.xd.spring.liteflow.component;

import cn.hutool.core.util.RandomUtil;
import com.yomahub.liteflow.core.NodeIfComponent;
import com.yomahub.liteflow.core.NodeSwitchComponent;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.concurrent.TimeUnit;

@Component("ifCmp")
@Slf4j
public class IfCmp extends NodeIfComponent {

    @Override
    public boolean processIf() throws Exception {
        return RandomUtil.randomBoolean();
    }
}
